home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / utilitys / 613 / access / dir.bat < prev    next >
DOS Batch File  |  1991-10-19  |  954b  |  31 lines

  1. set indent 1
  2. set offset 0
  3. set total0 0
  4. for -d 2 $1
  5.     if !{= $5 {>>>>>>}}
  6.         echo !{justify {} $indent}{Subdirectory }$2{:\n}
  7.         set indent !{+ $indent 4}
  8.         set offset !{+ $offset 1}
  9.         set total$offset 0
  10.     elseif !{= $5 {<<<<<<}}
  11.         if $-w
  12.             echo {\n}
  13.         set indent !{- $indent 4}
  14.         echo !{justify {} $indent}${total`$offset}{ bytes used from }$2{\n}
  15.         set offset !{- $offset 1}
  16.         set total$offset !{+ ${total`$offset} ${total`!{+ $offset 1}}}
  17.         set total!{+ $offset 1} {}
  18.     else
  19.         set total$offset !{+ ${total`$offset} $4}
  20.         set 2 !{tail $2}
  21.         if $-w
  22.             if !{= !{segment $5 5 1} {d}}
  23.                 set 2 $2{\\}
  24.             echo !{justify $2 -16}
  25.         else
  26.             echo !{justify {} $indent}!{justify $2 -13}!{justify $4 11}{ }$5{ }$6{\n}
  27. if $-w
  28.     echo {\n}
  29. echo ${total`$offset}{ bytes used\n}
  30. set total$offset {}
  31.